﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
using WindowsFormsApplication1;


namespace OutShow_test
{
    [TestFixture]
    public class Class1
    {
        outSide_show ob = new outSide_show();

        [Test]
        public void test_ExsistInDatabase()
        {
            ob.SHow(13, 6, "2014", 2);

        }
        //test
        [Test]
        public void test_NotExsistin()
        {
            ob.SHow(2, 7, "2015", 5);
        }

        [Test, ExpectedException(typeof(NotSupportedException))]
        public void test_Exception()
        {
            ob.SHow(2, 10, "k", 5);
        }

        [Test, ExpectedException(typeof(NotSupportedException))]
        public void test_Null()
        {
            ob.SHow(2, 10, "", 5);
        }
    }

}
